<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body>
<div id="reader" width="600px"></div>
<script th:src="@{/js/html5-qrcode.min.js}"></script>
<script>

    function onScanSuccess(qrCodeMessage) {
        alert(qrCodeMessage);
    }

    var html5QrcodeScanner = new Html5QrcodeScanner(
        "reader", { fps: 10, qrbox: 250 });
    html5QrcodeScanner.render(onScanSuccess);

</script>
</body>
</html>
